package com.manlu.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Created by Harry on 2020/2/13.
 *
 * @author Harry
 * @version 1.3
 * @since 1.2
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        //文件映射
        registry.addResourceHandler("/upload/**").addResourceLocations("file:E:\\MyProject\\blogImage\\");
    }
}
